package com.betterman.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Id;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 抽取公共属性到 base pojo 类
 * @author <a href="mailto:foxfocus@163.com">fox</a>
 * @version 8:21 上午 2020/8/6
 */
@Data
public class Base implements Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    @ApiModelProperty(value = "ID")
    private String id;

    @JsonFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime created;

    @JsonFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "修改时间")
    private LocalDateTime modified;
}
